import { createSSRApp } from "vue";
import App from "./App.vue";


import { createPinia } from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import "@/utils/http.ts";

export function createApp() {
  const app = createSSRApp(App);

  app.use(createPinia().use(piniaPluginPersistedstate));

  return {
    app,
  };
}
